{% extends 'base.html' %}
{% load crispy_forms_tags %}

{% block title %}注册{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-6 col-lg-4 bg-white p-4">
        <p class="mb-2 text-muted border-bottom">已经有账号？<a href="{% url 'account:login' %}" class="text-decoration-none text-primary ml-1">登录</a></p>
        <form method="POST" class="mt-2">
            {% csrf_token %}
            <fieldset class="form-group">
                {{ form | crispy }}
            </fieldset>
            <div class="form-group">
                <button class="btn btn-outline-info" type="submit">注册</button>
            </div>
        </form>
        </div>
    </div>
</div>
{% endblock %}
